package com.fenghen.demo01.client;

import com.fenghen.config.Result;
import com.fenghen.entity.CodeGeneratorConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "CodeGeneratorService", url = "http://localhost:8089/test") // demo2 服务的 URL
public interface CodeGeneratorFeignClient {

    @PostMapping("/generate-code")
    Result generateCode(@RequestBody CodeGeneratorConfig config);
}